<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    // var arr1 = [];
    // var arr2 = new Array();
    // var arr3 = [];
    // var arr4 = arr1;

    // console.log(arr1);
    // console.log(typeof arr1);
    // console.log(arr2);
    // console.log(typeof arr2);

    // console.log(arr1 == arr2);
    // console.log(arr1 === arr2);
    // console.log(arr1 === arr3);
    // console.log(arr1 === arr4);

    // 任何两个对象都不相等



    // var arr1 = ["hello", "world"];
    // var arr2 = new Array("hello", "world");
    // console.log(arr1);
    // console.log(arr2);


    var arr1 = [5];
    var arr2 = new Array(5);

    console.log(arr1);
    console.log(arr2);

    console.log(arr1.length);
    console.log(arr2.length);

    console.log(arr1[0])
    
    console.log(arr2[0])
    console.log(arr2[1])
    console.log(arr2[2])
    console.log(arr2[3])
    console.log(arr2[4])

</script>
</html>